package com.ishansong.ticket.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * Created by fengmeng on 15/9/9.
 */
@Entity
@Table(name = "demos")
public class Demo implements Serializable{

    /**
	 * 
	 */
	private static final long serialVersionUID = -3166340753489809944L;
	private  Long id;
    private  String name;
    private  Integer age;


	@Id
	@Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "age")
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}


